package org.vison.wonfu.framework.test.mproxy;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import org.vison.wonfu.framework.BaseRes;
import org.vison.wonfu.framework.test.mproxy.req.SqlCmdReq;
import org.vison.wonfu.framework.test.mproxy.service.SqlCmdService;

import javax.annotation.Resource;

@RestController
public class JproxyController {

    @Resource
    private SqlCmdService sqlCmdService;

    @PostMapping("/sql/cmd/init")
    public BaseRes<String> sqlCmdInit(@RequestBody SqlCmdReq sqlCmdReq){
        sqlCmdService.init(sqlCmdReq);
        return BaseRes.success("init");
    }


}
